package net.wanho.ums.service.impl;

import lombok.RequiredArgsConstructor;
import net.wanho.ums.entity.Dept;
import net.wanho.ums.mapper.DeptMapper;
import net.wanho.ums.service.DeptService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-12-20 16:29
 * Description：<描述>
 */
@Service
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor
public class DeptServiceImpl implements DeptService {

    private final DeptMapper deptMapper;


    @Override
    public List<Dept> list() {
        return deptMapper.selectAll();
    }
}
